package com.euq.mapper;

import com.euq.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NoticeMapper {
    @Select("select * from notice")
    List<Notice> listAll();
    @Select("select * from notice where title like #{title}")
    Notice findByTitle(String title);
}
